
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>5、docker的命令 · 王坤个人博客</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="wk">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism-duotone-dark.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="6、镜像的原理.html" />
    
    
    <link rel="prev" href="4、配置私有镜像仓库.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="https://my.oschina.net/kunBlog" target="_blank" class="custom-link">我的博客地址</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../cassandra/">
            
                <a href="../cassandra/">
            
                    
                    Cassandra
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../cassandra/1、cassandra的安装.html">
            
                <a href="../cassandra/1、cassandra的安装.html">
            
                    
                    1、cassandra的安装
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="./">
            
                <a href="./">
            
                    
                    Docker
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="1、docker与虚拟机的不同.html">
            
                <a href="1、docker与虚拟机的不同.html">
            
                    
                    1、docker与虚拟机的不同
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="2、镜像、容器、仓库.html">
            
                <a href="2、镜像、容器、仓库.html">
            
                    
                    2、镜像、容器、仓库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="3、在centos中安装.html">
            
                <a href="3、在centos中安装.html">
            
                    
                    3、在centos中安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="4、配置私有镜像仓库.html">
            
                <a href="4、配置私有镜像仓库.html">
            
                    
                    4、配置私有镜像仓库
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.3.5" data-path="5、docker的命令.html">
            
                <a href="5、docker的命令.html">
            
                    
                    5、docker的命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="6、镜像的原理.html">
            
                <a href="6、镜像的原理.html">
            
                    
                    6、镜像的原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="7、创建一个镜像.html">
            
                <a href="7、创建一个镜像.html">
            
                    
                    7、创建一个镜像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8" data-path="8、容器数据卷-持久化文件或目录.html">
            
                <a href="8、容器数据卷-持久化文件或目录.html">
            
                    
                    8、容器数据卷(持久化文件或目录)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9" data-path="9、dockerfile.html">
            
                <a href="9、dockerfile.html">
            
                    
                    9、dockerfile
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.10" data-path="10、创建自己的tomcat镜像.html">
            
                <a href="10、创建自己的tomcat镜像.html">
            
                    
                    10、创建自己的tomcat镜像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.11" data-path="11、使用docker安装mysql和redis.html">
            
                <a href="11、使用docker安装mysql和redis.html">
            
                    
                    11、使用docker安装mysql和redis
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.12" data-path="12、把本地镜像发布到阿里云.html">
            
                <a href="12、把本地镜像发布到阿里云.html">
            
                    
                    12、把本地镜像发布到阿里云
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../golang/">
            
                <a href="../golang/">
            
                    
                    Golang
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" >
            
                <span>
            
                    
                    Examples
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1.1" data-path="../golang/examples/1、生成随机数.html">
            
                <a href="../golang/examples/1、生成随机数.html">
            
                    
                    1、生成随机数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.2" data-path="../golang/examples/2、数组冒泡排序.html">
            
                <a href="../golang/examples/2、数组冒泡排序.html">
            
                    
                    2、数组冒泡排序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.3" data-path="../golang/examples/3、二分查找.html">
            
                <a href="../golang/examples/3、二分查找.html">
            
                    
                    3、二分查找
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.4" data-path="../golang/examples/4、工厂模式.html">
            
                <a href="../golang/examples/4、工厂模式.html">
            
                    
                    4、工厂模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.5" data-path="../golang/examples/5、对切片排序.html">
            
                <a href="../golang/examples/5、对切片排序.html">
            
                    
                    5、对切片排序
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.2" >
            
                <span>
            
                    
                    go的命令行
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.2.1" data-path="../golang/go的命令行/1、go的get命令.html">
            
                <a href="../golang/go的命令行/1、go的get命令.html">
            
                    
                    1、go get 命令
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.3" >
            
                <span>
            
                    
                    json序列化
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.3.1" data-path="../golang/json序列化/1、json序列化.html">
            
                <a href="../golang/json序列化/1、json序列化.html">
            
                    
                    1、json序列化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3.2" data-path="../golang/json序列化/2、json反序列化.html">
            
                <a href="../golang/json序列化/2、json反序列化.html">
            
                    
                    2、json反序列化
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.4" >
            
                <span>
            
                    
                    包管理工具
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.4.1" data-path="../golang/包管理工具/dep包管理工具.html">
            
                <a href="../golang/包管理工具/dep包管理工具.html">
            
                    
                    dep包管理工具
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.5" >
            
                <span>
            
                    
                    协程和管道
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.5.1" data-path="../golang/协程和管道/1、goroutine基础.html">
            
                <a href="../golang/协程和管道/1、goroutine基础.html">
            
                    
                    1、goroutine基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.2" data-path="../golang/协程和管道/2、goroutine的调度模型.html">
            
                <a href="../golang/协程和管道/2、goroutine的调度模型.html">
            
                    
                    2、goroutine的调度模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.3" data-path="../golang/协程和管道/3、全局锁和管道.html">
            
                <a href="../golang/协程和管道/3、全局锁和管道.html">
            
                    
                    3、全局锁和管道
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.4" data-path="../golang/协程和管道/4、管道.html">
            
                <a href="../golang/协程和管道/4、管道.html">
            
                    
                    4、管道
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.5" data-path="../golang/协程和管道/5、管道的注意点.html">
            
                <a href="../golang/协程和管道/5、管道的注意点.html">
            
                    
                    5、管道的注意点
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.6" >
            
                <span>
            
                    
                    单元测试
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.6.1" data-path="../golang/单元测试/1、单元测试入门.html">
            
                <a href="../golang/单元测试/1、单元测试入门.html">
            
                    
                    1、单元测试入门
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.7" >
            
                <span>
            
                    
                    反射
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.7.1" data-path="../golang/反射/1、反射.html">
            
                <a href="../golang/反射/1、反射.html">
            
                    
                    1、反射
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.7.2" data-path="../golang/反射/2、反射的使用细节.html">
            
                <a href="../golang/反射/2、反射的使用细节.html">
            
                    
                    2、反射的使用细节
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.8" >
            
                <span>
            
                    
                    常量
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.8.1" data-path="../golang/常量/1、常量.html">
            
                <a href="../golang/常量/1、常量.html">
            
                    
                    1、常量
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.9" >
            
                <span>
            
                    
                    文件操作
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.9.1" data-path="../golang/文件操作/1、读取文件.html">
            
                <a href="../golang/文件操作/1、读取文件.html">
            
                    
                    1、读取文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.9.2" data-path="../golang/文件操作/2、写文件.html">
            
                <a href="../golang/文件操作/2、写文件.html">
            
                    
                    2、写文件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.10" >
            
                <span>
            
                    
                    网络编程
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.10.1" data-path="../golang/网络编程/1、网络编程基础.html">
            
                <a href="../golang/网络编程/1、网络编程基础.html">
            
                    
                    1、网络编程基础
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.11" >
            
                <span>
            
                    
                    面向对象
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.11.1" data-path="../golang/面向对象/1、go使用struct实现OOP.html">
            
                <a href="../golang/面向对象/1、go使用struct实现OOP.html">
            
                    
                    1、go使用struct实现OOP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.11.2" data-path="../golang/面向对象/2、方法.html">
            
                <a href="../golang/面向对象/2、方法.html">
            
                    
                    2、方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.11.3" data-path="../golang/面向对象/3、封装.html">
            
                <a href="../golang/面向对象/3、封装.html">
            
                    
                    3、封装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.11.4" data-path="../golang/面向对象/4、继承.html">
            
                <a href="../golang/面向对象/4、继承.html">
            
                    
                    4、继承
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.11.5" data-path="../golang/面向对象/5、接口.html">
            
                <a href="../golang/面向对象/5、接口.html">
            
                    
                    5、接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.11.6" data-path="../golang/面向对象/6、多肽.html">
            
                <a href="../golang/面向对象/6、多肽.html">
            
                    
                    6、多肽
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.11.7" data-path="../golang/面向对象/7、类型断言.html">
            
                <a href="../golang/面向对象/7、类型断言.html">
            
                    
                    7、类型断言
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.12" data-path="../golang/1、windows下安装golang环境.html">
            
                <a href="../golang/1、windows下安装golang环境.html">
            
                    
                    1、windows下安装golang环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.13" data-path="../golang/2、webStorm安装go语言插件.html">
            
                <a href="../golang/2、webStorm安装go语言插件.html">
            
                    
                    2、webStorm安装go语言插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.14" data-path="../golang/3、go的一些语法风格.html">
            
                <a href="../golang/3、go的一些语法风格.html">
            
                    
                    3、go的一些语法风格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.15" data-path="../golang/4、go语法-变量.html">
            
                <a href="../golang/4、go语法-变量.html">
            
                    
                    4、go语法-变量
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.16" data-path="../golang/5、go语法--数据类型.html">
            
                <a href="../golang/5、go语法--数据类型.html">
            
                    
                    5、go语法--数据类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.17" data-path="../golang/6、go的整数类型.html">
            
                <a href="../golang/6、go的整数类型.html">
            
                    
                    6、go的整数类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.18" data-path="../golang/7、go的浮点类型.html">
            
                <a href="../golang/7、go的浮点类型.html">
            
                    
                    7、go的浮点类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.19" data-path="../golang/8、go的字符类型.html">
            
                <a href="../golang/8、go的字符类型.html">
            
                    
                    8、go的字符类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.20" data-path="../golang/9、go的bool类型.html">
            
                <a href="../golang/9、go的bool类型.html">
            
                    
                    9、go的bool类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.21" data-path="../golang/10、go的string类型.html">
            
                <a href="../golang/10、go的string类型.html">
            
                    
                    10、go的string类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.22" data-path="../golang/11、基本数据类型相互转换.html">
            
                <a href="../golang/11、基本数据类型相互转换.html">
            
                    
                    11、基本数据类型相互转换
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.23" data-path="../golang/12、基本数据类型和string的转换.html">
            
                <a href="../golang/12、基本数据类型和string的转换.html">
            
                    
                    12、基本数据类型和string的转换
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.24" data-path="../golang/13、go的指针.html">
            
                <a href="../golang/13、go的指针.html">
            
                    
                    13、go的指针
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.25" data-path="../golang/14、go的标识符.html">
            
                <a href="../golang/14、go的标识符.html">
            
                    
                    14、go的标识符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.26" data-path="../golang/15、go的关键字.html">
            
                <a href="../golang/15、go的关键字.html">
            
                    
                    15、go的关键字
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.27" data-path="../golang/16、go的运算符-算术运算.html">
            
                <a href="../golang/16、go的运算符-算术运算.html">
            
                    
                    16、go的运算符-算术运算
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.28" data-path="../golang/17、比较、赋值、逻辑运算符.html">
            
                <a href="../golang/17、比较、赋值、逻辑运算符.html">
            
                    
                    17、比较、赋值、逻辑运算符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.29" data-path="../golang/18、运算符的优先级.html">
            
                <a href="../golang/18、运算符的优先级.html">
            
                    
                    18、运算符的优先级
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.30" data-path="../golang/19、其他运算符.html">
            
                <a href="../golang/19、其他运算符.html">
            
                    
                    19、其他运算符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.31" data-path="../golang/20、go获取键盘输入.html">
            
                <a href="../golang/20、go获取键盘输入.html">
            
                    
                    20、go获取键盘输入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.32" data-path="../golang/21、进制、位运算.html">
            
                <a href="../golang/21、进制、位运算.html">
            
                    
                    21、进制、位运算
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.33" data-path="../golang/22、if和switch语句.html">
            
                <a href="../golang/22、if和switch语句.html">
            
                    
                    22、if和switch语句
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.34" data-path="../golang/23、for循环.html">
            
                <a href="../golang/23、for循环.html">
            
                    
                    23、for循环
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.35" data-path="../golang/24、goto语句.html">
            
                <a href="../golang/24、goto语句.html">
            
                    
                    24、goto语句
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.36" data-path="../golang/25、函数1.html">
            
                <a href="../golang/25、函数1.html">
            
                    
                    25、函数1
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.37" data-path="../golang/26、包-package.html">
            
                <a href="../golang/26、包-package.html">
            
                    
                    26、包-package
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.38" data-path="../golang/27、init函数.html">
            
                <a href="../golang/27、init函数.html">
            
                    
                    27、init函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.39" data-path="../golang/28、匿名函数.html">
            
                <a href="../golang/28、匿名函数.html">
            
                    
                    28、匿名函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.40" data-path="../golang/29、闭包.html">
            
                <a href="../golang/29、闭包.html">
            
                    
                    29、闭包
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.41" data-path="../golang/30、defer.html">
            
                <a href="../golang/30、defer.html">
            
                    
                    30、defer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.42" data-path="../golang/31、值传递和引用传递.html">
            
                <a href="../golang/31、值传递和引用传递.html">
            
                    
                    31、值传递和引用传递
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.43" data-path="../golang/32、常用字符串函数.html">
            
                <a href="../golang/32、常用字符串函数.html">
            
                    
                    32、常用字符串函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.44" data-path="../golang/33、时间和日期函数.html">
            
                <a href="../golang/33、时间和日期函数.html">
            
                    
                    33、时间和日期函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.45" data-path="../golang/34、go语言的内置函数.html">
            
                <a href="../golang/34、go语言的内置函数.html">
            
                    
                    34、go语言的内置函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.46" data-path="../golang/35、go语言的错误处理.html">
            
                <a href="../golang/35、go语言的错误处理.html">
            
                    
                    35、go语言的错误处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.47" data-path="../golang/36、数组.html">
            
                <a href="../golang/36、数组.html">
            
                    
                    36、数组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.48" data-path="../golang/37、切片slice.html">
            
                <a href="../golang/37、切片slice.html">
            
                    
                    37、切片slice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.49" data-path="../golang/38、string和slice.html">
            
                <a href="../golang/38、string和slice.html">
            
                    
                    38、string 和 slice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.50" data-path="../golang/39、二维数组.html">
            
                <a href="../golang/39、二维数组.html">
            
                    
                    39、二维数组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.51" data-path="../golang/40、map的用法.html">
            
                <a href="../golang/40、map的用法.html">
            
                    
                    40、map的用法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.52" data-path="../golang/41、获取命令行参数.html">
            
                <a href="../golang/41、获取命令行参数.html">
            
                    
                    41、获取命令行参数
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../Istio/">
            
                <a href="../Istio/">
            
                    
                    Istio
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../redis/">
            
                <a href="../redis/">
            
                    
                    Redis
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" >
            
                <span>
            
                    
                    golang连接redis
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1.1" data-path="../redis/golang连接redis/1、go语言连接使用redis.html">
            
                <a href="../redis/golang连接redis/1、go语言连接使用redis.html">
            
                    
                    1、go语言连接使用redis
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.1.2" data-path="../redis/golang连接redis/2、redis连接池.html">
            
                <a href="../redis/golang连接redis/2、redis连接池.html">
            
                    
                    2、redis连接池
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.2" >
            
                <span>
            
                    
                    protected-mode设置
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.2.1" data-path="../redis/protected-mode设置/1、设置保护模式.html">
            
                <a href="../redis/protected-mode设置/1、设置保护模式.html">
            
                    
                    1、设置保护模式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../redis/1、redis的安装.html">
            
                <a href="../redis/1、redis的安装.html">
            
                    
                    1、redis的安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../redis/2、redis数据库的命令操作.html">
            
                <a href="../redis/2、redis数据库的命令操作.html">
            
                    
                    2、redis数据库的命令操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../redis/3、string类型的操作.html">
            
                <a href="../redis/3、string类型的操作.html">
            
                    
                    3、string类型的操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../redis/4、hash类型的操作.html">
            
                <a href="../redis/4、hash类型的操作.html">
            
                    
                    4、hash类型的操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../redis/5、list类型的操作.html">
            
                <a href="../redis/5、list类型的操作.html">
            
                    
                    5、list类型的操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="../redis/6、Set类型的操作.html">
            
                <a href="../redis/6、Set类型的操作.html">
            
                    
                    6、Set类型的操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" data-path="../redis/7、docker安装redis.html">
            
                <a href="../redis/7、docker安装redis.html">
            
                    
                    7、docker安装redis
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10" data-path="../redis/8、redis集群搭建.html">
            
                <a href="../redis/8、redis集群搭建.html">
            
                    
                    8、redis集群搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.11" data-path="../redis/9、zset类型的操作.html">
            
                <a href="../redis/9、zset类型的操作.html">
            
                    
                    9、zset类型的操作
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" >
            
                <span>
            
                    
                    数据结构和算法
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../数据结构和算法/1、稀疏数组.html">
            
                <a href="../数据结构和算法/1、稀疏数组.html">
            
                    
                    1、稀疏数组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../数据结构和算法/2、队列.html">
            
                <a href="../数据结构和算法/2、队列.html">
            
                    
                    2、队列
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../数据结构和算法/3、单向链表.html">
            
                <a href="../数据结构和算法/3、单向链表.html">
            
                    
                    3、单向链表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../数据结构和算法/4、双向链表.html">
            
                <a href="../数据结构和算法/4、双向链表.html">
            
                    
                    4、双向链表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../数据结构和算法/5、单向环形链表.html">
            
                <a href="../数据结构和算法/5、单向环形链表.html">
            
                    
                    5、单向环形链表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="../数据结构和算法/6、约瑟夫问题.html">
            
                <a href="../数据结构和算法/6、约瑟夫问题.html">
            
                    
                    6、约瑟夫问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.7" data-path="../数据结构和算法/7、选择排序.html">
            
                <a href="../数据结构和算法/7、选择排序.html">
            
                    
                    7、选择排序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.8" data-path="../数据结构和算法/8、插入排序.html">
            
                <a href="../数据结构和算法/8、插入排序.html">
            
                    
                    8、插入排序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.9" data-path="../数据结构和算法/9、快速排序法.html">
            
                <a href="../数据结构和算法/9、快速排序法.html">
            
                    
                    9、快速排序法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../springCloud/">
            
                <a href="../springCloud/">
            
                    
                    springCloud
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../springCloud/consul/">
            
                <a href="../springCloud/consul/">
            
                    
                    consul
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1.1" data-path="../springCloud/consul/1、springcloud服务注册到consul.html">
            
                <a href="../springCloud/consul/1、springcloud服务注册到consul.html">
            
                    
                    1、springcloud服务注册到consul
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.1.2" data-path="../springCloud/consul/2、springcloud消费consul中注册的服务.html">
            
                <a href="../springCloud/consul/2、springcloud消费consul中注册的服务.html">
            
                    
                    2、springcloud消费consul中注册的服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.1.3" data-path="../springCloud/consul/3、springcloud使用consul做配置中心.html">
            
                <a href="../springCloud/consul/3、springcloud使用consul做配置中心.html">
            
                    
                    3、springcloud使用consul做配置中心
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../springCloud/springBoot/">
            
                <a href="../springCloud/springBoot/">
            
                    
                    springBoot
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.2.1" >
            
                <span>
            
                    
                    一些问题解决方式
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.2.1.1" data-path="../springCloud/springBoot/一些问题解决方式/1、StreamingResponseBody问题.html">
            
                <a href="../springCloud/springBoot/一些问题解决方式/1、StreamingResponseBody问题.html">
            
                    
                    1、StreamingResponseBody问题
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8.2.2" data-path="../springCloud/springBoot/1、新建springboot工程.html">
            
                <a href="../springCloud/springBoot/1、新建springboot工程.html">
            
                    
                    1、新建springboot工程
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../springCloud/1、Eureka服务注册中心.html">
            
                <a href="../springCloud/1、Eureka服务注册中心.html">
            
                    
                    1、Eureka服务注册中心
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../springCloud/2、服务调用.html">
            
                <a href="../springCloud/2、服务调用.html">
            
                    
                    2、服务调用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.5" data-path="../springCloud/3、断路器hystrix的使用.html">
            
                <a href="../springCloud/3、断路器hystrix的使用.html">
            
                    
                    3、断路器hystrix的使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.6" data-path="../springCloud/4、断路器hystrix的隔离策略.html">
            
                <a href="../springCloud/4、断路器hystrix的隔离策略.html">
            
                    
                    4、断路器hystrix的隔离策略
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.7" data-path="../springCloud/5、hystrix的Dashboard和Turbine.html">
            
                <a href="../springCloud/5、hystrix的Dashboard和Turbine.html">
            
                    
                    5、hystrix的Dashboard和Turbine
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../vpn/">
            
                <a href="../vpn/">
            
                    
                    Vpn
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../vpn/1、ss服务器的安装.html">
            
                <a href="../vpn/1、ss服务器的安装.html">
            
                    
                    1、ss服务器的安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../vpn/2、SS客户端.html">
            
                <a href="../vpn/2、SS客户端.html">
            
                    
                    2、SS客户端
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" >
            
                <span>
            
                    
                    gitbook的使用
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../gitbook的使用/1、gitbook的使用.html">
            
                <a href="../gitbook的使用/1、gitbook的使用.html">
            
                    
                    1、gitbook 的使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../gitbook的使用/2、gitbook命令.html">
            
                <a href="../gitbook的使用/2、gitbook命令.html">
            
                    
                    2、gitbook命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="../gitbook的使用/3、gitbook连续大括号的解决方式.html">
            
                <a href="../gitbook的使用/3、gitbook连续大括号的解决方式.html">
            
                    
                    3、gitbook连续大括号的解决方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.4" data-path="../gitbook的使用/4、gitbook插件.html">
            
                <a href="../gitbook的使用/4、gitbook插件.html">
            
                    
                    4、gitbook插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.5" data-path="../gitbook的使用/5、去掉-本书由gitbook发布.html">
            
                <a href="../gitbook的使用/5、去掉-本书由gitbook发布.html">
            
                    
                    5、去掉-本书由gitbook发布
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" >
            
                <span>
            
                    
                    markdown学习
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../markdown学习/1、markdown的学习.html">
            
                <a href="../markdown学习/1、markdown的学习.html">
            
                    
                    1、markdown的学习
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../keycloak/">
            
                <a href="../keycloak/">
            
                    
                    keycloak
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="../keycloak/1、keycloak的简单使用.html">
            
                <a href="../keycloak/1、keycloak的简单使用.html">
            
                    
                    1、keycloak的简单使用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" >
            
                <span>
            
                    
                    分布式事务
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../分布式事务/1、事务的介绍.html">
            
                <a href="../分布式事务/1、事务的介绍.html">
            
                    
                    1、事务的介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="../分布式事务/2、分布式事务的理论.html">
            
                <a href="../分布式事务/2、分布式事务的理论.html">
            
                    
                    2、分布式事务的理论
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >5、docker的命令</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#&#x5E2E;&#x52A9;&#x547D;&#x4EE4;&#xFF1A;"><b>1. </b>&#x5E2E;&#x52A9;&#x547D;&#x4EE4;&#xFF1A;</a></li><ul><li><span class="title-icon "></span><a href="#docker-version"><b>1.1. </b>docker version</a></li><li><span class="title-icon "></span><a href="#docker-info"><b>1.2. </b>docker info</a></li><li><span class="title-icon "></span><a href="#docker---help"><b>1.3. </b>docker --help</a></li></ul><li><span class="title-icon "></span><a href="#&#x955C;&#x50CF;&#x547D;&#x4EE4;&#xFF1A;"><b>2. </b>&#x955C;&#x50CF;&#x547D;&#x4EE4;&#xFF1A;</a></li><ul><li><span class="title-icon "></span><a href="#docker-images"><b>2.1. </b>docker images</a></li><li><span class="title-icon "></span><a href="#docker-search-&#x955C;&#x50CF;&#x540D;"><b>2.2. </b>docker search &#x955C;&#x50CF;&#x540D;</a></li><li><span class="title-icon "></span><a href="#docker-pull-&#x955C;&#x50CF;&#x540D;"><b>2.3. </b>docker pull &#x955C;&#x50CF;&#x540D;</a></li><li><span class="title-icon "></span><a href="#docker-rmi-&#x955C;&#x50CF;&#x540D;&#x6216;&#x955C;&#x50CF;id"><b>2.4. </b>docker rmi &#x955C;&#x50CF;&#x540D;&#x6216;&#x955C;&#x50CF;ID</a></li></ul><li><span class="title-icon "></span><a href="#&#x5BB9;&#x5668;&#x547D;&#x4EE4;&#xFF1A;"><b>3. </b>&#x5BB9;&#x5668;&#x547D;&#x4EE4;&#xFF1A;</a></li><ul><li><span class="title-icon "></span><a href="#&#x8FD0;&#x884C;&#x5BB9;&#x5668;&#xFF1A;"><b>3.1. </b>&#x8FD0;&#x884C;&#x5BB9;&#x5668;&#xFF1A;</a></li><li><span class="title-icon "></span><a href="#&#x67E5;&#x770B;&#x5BB9;&#x5668;&#xFF1A;"><b>3.2. </b>&#x67E5;&#x770B;&#x5BB9;&#x5668;&#xFF1A;</a></li><li><span class="title-icon "></span><a href="#&#x505C;&#x6B62;&#x5BB9;&#x5668;"><b>3.3. </b>&#x505C;&#x6B62;&#x5BB9;&#x5668;</a></li><li><span class="title-icon "></span><a href="#&#x9000;&#x51FA;&#x5BB9;&#x5668;"><b>3.4. </b>&#x9000;&#x51FA;&#x5BB9;&#x5668;</a></li><li><span class="title-icon "></span><a href="#&#x542F;&#x52A8;&#x5DF2;&#x7ECF;&#x505C;&#x6B62;&#x7684;&#x5BB9;&#x5668;&#x3002;"><b>3.5. </b>&#x542F;&#x52A8;&#x5DF2;&#x7ECF;&#x505C;&#x6B62;&#x7684;&#x5BB9;&#x5668;&#x3002;</a></li><li><span class="title-icon "></span><a href="#&#x91CD;&#x542F;&#x5BB9;&#x5668;&#x3002;"><b>3.6. </b>&#x91CD;&#x542F;&#x5BB9;&#x5668;&#x3002;</a></li><li><span class="title-icon "></span><a href="#kill&#x5BB9;&#x5668;&#xFF0C;&#x5F3A;&#x5236;&#x505C;&#x6B62;&#x5BB9;&#x5668;&#x3002;"><b>3.7. </b>kill&#x5BB9;&#x5668;&#xFF0C;&#x5F3A;&#x5236;&#x505C;&#x6B62;&#x5BB9;&#x5668;&#x3002;</a></li><li><span class="title-icon "></span><a href="#&#x5220;&#x9664;&#x5DF2;&#x505C;&#x6B62;&#x7684;&#x5BB9;&#x5668;&#x3002;"><b>3.8. </b>&#x5220;&#x9664;&#x5DF2;&#x505C;&#x6B62;&#x7684;&#x5BB9;&#x5668;&#x3002;</a></li><li><span class="title-icon "></span><a href="#&#x67E5;&#x770B;&#x5BB9;&#x5668;&#x65E5;&#x5FD7;&#x3002;"><b>3.9. </b>&#x67E5;&#x770B;&#x5BB9;&#x5668;&#x65E5;&#x5FD7;&#x3002;</a></li><li><span class="title-icon "></span><a href="#&#x67E5;&#x770B;&#x5BB9;&#x5668;&#x5185;&#x90E8;&#x7EC6;&#x8282;&#x3002;"><b>3.10. </b>&#x67E5;&#x770B;&#x5BB9;&#x5668;&#x5185;&#x90E8;&#x7EC6;&#x8282;&#x3002;</a></li><li><span class="title-icon "></span><a href="#&#x9000;&#x51FA;&#x5BB9;&#x5668;&#x540E;&#xFF0C;&#x91CD;&#x65B0;&#x4E0E;&#x5BB9;&#x5668;&#x4EA4;&#x4E92;&#x3002;"><b>3.11. </b>&#x9000;&#x51FA;&#x5BB9;&#x5668;&#x540E;&#xFF0C;&#x91CD;&#x65B0;&#x4E0E;&#x5BB9;&#x5668;&#x4EA4;&#x4E92;&#x3002;</a></li><li><span class="title-icon "></span><a href="#&#x67E5;&#x770B;&#x5BB9;&#x5668;&#x7684;&#x8FDB;&#x7A0B;&#x3002;"><b>3.12. </b>&#x67E5;&#x770B;&#x5BB9;&#x5668;&#x7684;&#x8FDB;&#x7A0B;&#x3002;</a></li><li><span class="title-icon "></span><a href="#&#x4ECE;&#x5BB9;&#x5668;&#x5185;&#x62F7;&#x8D1D;&#x6587;&#x4EF6;&#x5230;&#x4E3B;&#x673A;&#x4E0A;"><b>3.13. </b>&#x4ECE;&#x5BB9;&#x5668;&#x5185;&#x62F7;&#x8D1D;&#x6587;&#x4EF6;&#x5230;&#x4E3B;&#x673A;&#x4E0A;</a></li></ul></ul></div><a href="#&#x5E2E;&#x52A9;&#x547D;&#x4EE4;&#xFF1A;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><p>docker&#x670D;&#x52A1;&#x5668;&#x662F;c/s&#xFF08;client&#x3001;server&#xFF09;&#x7ED3;&#x6784;&#x3002;docker&#x7684;&#x670D;&#x52A1;&#x7AEF;&#x5B88;&#x62A4;&#x8FDB;&#x7A0B;&#x8FD0;&#x884C;&#x5728;&#x4E3B;&#x673A;&#x4E0A;&#xFF0C;&#x670D;&#x52A1;&#x7AEF;&#x5B88;&#x62A4;&#x8FDB;&#x7A0B;&#x7BA1;&#x7406;&#x7740;&#x5F88;&#x591A;&#x7684;&#x5BB9;&#x5668;&#xFF0C;&#x6211;&#x4EEC;&#x901A;&#x8FC7;&#x5BA2;&#x6237;&#x7AEF;Socker&#x8FDE;&#x63A5;&#x8BBF;&#x95EE;&#x670D;&#x52A1;&#x7AEF;&#xFF0C;&#x901A;&#x8FC7;docker&#x7684;&#x5BA2;&#x6237;&#x7AEF;&#x547D;&#x4EE4;&#x64CD;&#x4F5C;&#x670D;&#x52A1;&#x5668;&#x3002;&#x5E38;&#x7528;&#x547D;&#x4EE4;&#x5982;&#x4E0B;&#xFF1A;</p>
<h1 id="&#x5E2E;&#x52A9;&#x547D;&#x4EE4;&#xFF1A;"><a name="&#x5E2E;&#x52A9;&#x547D;&#x4EE4;&#xFF1A;" class="anchor-navigation-ex-anchor" href="#&#x5E2E;&#x52A9;&#x547D;&#x4EE4;&#xFF1A;"><i class="fa fa-link" aria-hidden="true"></i></a>1. &#x5E2E;&#x52A9;&#x547D;&#x4EE4;&#xFF1A;</h1>
<ul>
<li><h2 id="docker-version"><a name="docker-version" class="anchor-navigation-ex-anchor" href="#docker-version"><i class="fa fa-link" aria-hidden="true"></i></a>1.1. docker version</h2>
</li>
</ul>
<p>&#x67E5;&#x770B;docker&#x670D;&#x52A1;&#x5668;&#x7684;&#x7248;&#x672C;&#x3002;</p>
<ul>
<li><h2 id="docker-info"><a name="docker-info" class="anchor-navigation-ex-anchor" href="#docker-info"><i class="fa fa-link" aria-hidden="true"></i></a>1.2. docker info</h2>
</li>
</ul>
<p>&#x67E5;&#x770B;docker&#x670D;&#x52A1;&#x5668;&#x7684;&#x66F4;&#x591A;&#x4FE1;&#x606F;&#xFF0C;&#x6BD4;&#x5982;&#xFF1A;Container&#x6709;&#x591A;&#x5C11;&#x3001;Image&#x6709;&#x591A;&#x5C11;&#x3001;&#x955C;&#x50CF;&#x7684;&#x5730;&#x5740;Registry Mirrors&#x7B49;&#x3002;</p>
<ul>
<li><h2 id="docker---help"><a name="docker---help" class="anchor-navigation-ex-anchor" href="#docker---help"><i class="fa fa-link" aria-hidden="true"></i></a>1.3. docker --help</h2>
</li>
</ul>
<p>&#x67E5;&#x770B;docker&#x7684;&#x547D;&#x4EE4;&#x3002;</p>
<h1 id="&#x955C;&#x50CF;&#x547D;&#x4EE4;&#xFF1A;"><a name="&#x955C;&#x50CF;&#x547D;&#x4EE4;&#xFF1A;" class="anchor-navigation-ex-anchor" href="#&#x955C;&#x50CF;&#x547D;&#x4EE4;&#xFF1A;"><i class="fa fa-link" aria-hidden="true"></i></a>2. &#x955C;&#x50CF;&#x547D;&#x4EE4;&#xFF1A;</h1>
<ul>
<li><h2 id="docker-images"><a name="docker-images" class="anchor-navigation-ex-anchor" href="#docker-images"><i class="fa fa-link" aria-hidden="true"></i></a>2.1. docker images</h2>
</li>
</ul>
<p>&#x67E5;&#x770B;&#x672C;&#x673A;&#x4E0A;&#x7684;&#x955C;&#x50CF;&#x3002;&#x5982;&#x4E0B;&#xFF0C;&#x672C;&#x673A;&#x53EA;&#x6709;&#x4E00;&#x4E2A;&#x955C;&#x50CF;hello-world&#x3002;</p>
<pre class="language-"><code>[root@localhost ~]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
hello-world         latest              fce289e99eb9        2 months ago        1.84kB
</code></pre><ul>
<li>REPOSITORY &#xFF1A;&#x8868;&#x793A;&#x955C;&#x50CF;&#x7684;&#x4ED3;&#x5E93;&#x6E90;&#x3002;</li>
<li>TAG&#xFF1A;&#x8868;&#x793A;&#x955C;&#x50CF;&#x7684;&#x7248;&#x672C;&#x3002;</li>
<li>IMAGE ID&#xFF1A;&#x8868;&#x793A;&#x955C;&#x50CF;&#x7684;id&#x3002;</li>
<li>SIZE&#xFF1A;&#x8868;&#x793A;&#x955C;&#x50CF;&#x7684;&#x5927;&#x5C0F;&#x3002;</li>
</ul>
<p><strong>docker images &#x540E;&#x9762;&#x6709;&#x4E00;&#x4E9B;&#x53EF;&#x9009;&#x7684;&#x53C2;&#x6570;&#x3002;</strong></p>
<ul>
<li>-q &#x8868;&#x793A;&#x53EA;&#x663E;&#x793A;&#x955C;&#x50CF;&#x7684;id&#x3002;</li>
</ul>
<pre class="language-"><code>[root@localhost ~]# docker images -q
fce289e99eb9
</code></pre><ul>
<li><p>-a &#x5217;&#x51FA;&#x672C;&#x5730;&#x6240;&#x6709;&#x7684;&#x955C;&#x50CF;&#xFF08;&#x542B;&#x4E2D;&#x95F4;&#x6620;&#x50CF;&#x5C42;&#xFF09;</p>
</li>
<li><p>--digests &#x663E;&#x793A;&#x6458;&#x8981;&#x4FE1;&#x606F;&#x3002;&#x663E;&#x793A;&#x7684;&#x4FE1;&#x606F;&#x591A;&#x4E86;&#x4E00;&#x5217;DIGEST&#x3002;</p>
</li>
<li><p>--no-trunc &#x4E0D;&#x622A;&#x65AD;&#x663E;&#x793A;&#x4FE1;&#x606F;&#x3002;&#x9ED8;&#x8BA4;IMAGE ID&#x53EA;&#x663E;&#x793A;&#x524D;12&#x4F4D;&#x3002;</p>
</li>
</ul>
<pre class="language-"><code>[root@localhost ~]# docker images --digests
REPOSITORY          TAG                 DIGEST                                                                    IMAGE ID            CREATED             SIZE
hello-world         latest              sha256:2557e3c07ed1e38f26e389462d03ed943586f744621577a99efb77324b0fe535   fce289e99eb9        2 months ago        1.84kB
</code></pre><pre class="language-"><code>[root@localhost ~]# docker images  --no-trunc
REPOSITORY          TAG                 IMAGE ID                                                                  CREATED             SIZE
hello-world         latest              sha256:fce289e99eb9bca977dae136fbe2a82b6b7d4c372474c9235adc1741675f587e   2 months ago        1.84kB
</code></pre><ul>
<li><h2 id="docker-search-&#x955C;&#x50CF;&#x540D;"><a name="docker-search-&#x955C;&#x50CF;&#x540D;" class="anchor-navigation-ex-anchor" href="#docker-search-&#x955C;&#x50CF;&#x540D;"><i class="fa fa-link" aria-hidden="true"></i></a>2.2. docker search &#x955C;&#x50CF;&#x540D;</h2>
</li>
</ul>
<p>&#x8868;&#x793A;&#x53BB;<strong>hub.docker.com</strong>&#x67E5;&#x8BE2;&#x955C;&#x50CF;&#x3002;&#x548C;&#x76F4;&#x63A5;&#x6253;&#x5F00;&#x8FD9;&#x4E2A;&#x7F51;&#x7AD9;&#xFF0C;&#x5728;&#x641C;&#x7D22;&#x6846;&#x8F93;&#x5165;&#x955C;&#x50CF;&#x540D;&#x641C;&#x7D22;&#x4E00;&#x6837;&#x3002;&#x5982;&#x4E0B;&#xFF1A;&#x641C;&#x7D22;Tomcat&#x955C;&#x50CF;&#x3002;</p>
<pre class="language-"><code>[root@localhost ~]# docker search tomcat
NAME                                       DESCRIPTION                                     STARS               OFFICIAL            AUTOMATED
tomcat                                     Apache Tomcat is an open source implementati&#x2026;   2314                [OK]                
tomee                                      Apache TomEE is an all-Apache Java EE certif&#x2026;   64                  [OK]                
dordoka/tomcat                             Ubuntu 14.04, Oracle JDK 8 and Tomcat 8 base&#x2026;   52                                      [OK]
davidcaste/alpine-tomcat                   Apache Tomcat 7/8 using Oracle Java 7/8 with&#x2026;   34                                      [OK]
bitnami/tomcat                             Bitnami Tomcat Docker Image                     27                                      [OK]
</code></pre><p>&#x8FD9;&#x91CC;&#x6709;&#x4E2A;STARS&#x8868;&#x793A;&#x8FD9;&#x4E2A;&#x955C;&#x50CF;&#x7684;&#x70B9;&#x8D5E;&#x4EBA;&#x6570;&#xFF0C;&#x548C;github&#x7684;&#x4E00;&#x6837;&#x3002;</p>
<p><strong>docker search &#x540E;&#x9762;&#x6709;&#x4E00;&#x4E9B;&#x53EF;&#x9009;&#x7684;&#x53C2;&#x6570;&#x3002;</strong></p>
<ul>
<li>-s  &#x8868;&#x793A;&#x5217;&#x51FA;STARS&#x4E0D;&#x5C0F;&#x4E8E;&#x67D0;&#x4E2A;&#x503C;&#x7684;&#x955C;&#x50CF;&#x3002;&#x5982;&#x4E0B;&#xFF1A;&#x5217;&#x51FA;STARS&#x5927;&#x4E8E;60&#x7684;tomcat&#x955C;&#x50CF;&#x3002;</li>
</ul>
<pre class="language-"><code>[root@localhost ~]# docker search -s 60  tomcat
Flag --stars has been deprecated, use --filter=stars=3 instead
NAME                DESCRIPTION                                     STARS               OFFICIAL            AUTOMATED
tomcat              Apache Tomcat is an open source implementati&#x2026;   2314                [OK]                
tomee               Apache TomEE is an all-Apache Java EE certif&#x2026;   64                  [OK]
</code></pre><ul>
<li><p>--automated  &#x8868;&#x793A;&#x5217;&#x51FA;AUTOMATED&#x662F;OK&#x7684;&#x955C;&#x50CF;&#x3002;</p>
</li>
<li><h2 id="docker-pull-&#x955C;&#x50CF;&#x540D;"><a name="docker-pull-&#x955C;&#x50CF;&#x540D;" class="anchor-navigation-ex-anchor" href="#docker-pull-&#x955C;&#x50CF;&#x540D;"><i class="fa fa-link" aria-hidden="true"></i></a>2.3. docker pull &#x955C;&#x50CF;&#x540D;</h2>
</li>
</ul>
<p>&#x8868;&#x793A;&#x628A;&#x67D0;&#x4E2A;&#x955C;&#x50CF;&#x4ECE;&#x8FDC;&#x7A0B;&#x62C9;&#x5230;&#x672C;&#x5730;&#x3002;&#x4F8B;&#x5B50;&#x5982;&#x4E0B;&#xFF1A;&#x4E0B;&#x8F7D;tomcat&#x955C;&#x50CF;&#x3002;</p>
<pre class="language-"><code>

</code></pre><p>&#x4E0D;&#x6307;&#x5B9A;&#x7248;&#x672C;&#x7684;&#x60C5;&#x51B5;&#x4E0B;docker pull tomcat &#x7B49;&#x4EF7;&#x4E8E; docker pull tomcat:latest&#x3002;&#x4E0B;&#x8F7D;&#x7684;&#x6700;&#x65B0;&#x7248;&#x3002;</p>
<ul>
<li><h2 id="docker-rmi-&#x955C;&#x50CF;&#x540D;&#x6216;&#x955C;&#x50CF;id"><a name="docker-rmi-&#x955C;&#x50CF;&#x540D;&#x6216;&#x955C;&#x50CF;id" class="anchor-navigation-ex-anchor" href="#docker-rmi-&#x955C;&#x50CF;&#x540D;&#x6216;&#x955C;&#x50CF;id"><i class="fa fa-link" aria-hidden="true"></i></a>2.4. docker rmi &#x955C;&#x50CF;&#x540D;&#x6216;&#x955C;&#x50CF;ID</h2>
</li>
</ul>
<p>&#x8868;&#x793A;&#x5220;&#x9664;&#x672C;&#x5730;&#x7684;&#x67D0;&#x4E2A;&#x955C;&#x50CF;&#x3002;&#x4E0D;&#x6307;&#x5B9A;&#x7248;&#x672C;&#x7684;&#x60C5;&#x51B5;&#x4E0B;docker rmi tomcat &#x7B49;&#x4EF7;&#x4E8E; docker rmi tomcat :latest&#x3002;&#x5220;&#x9664;&#x6700;&#x65B0;&#x7248;&#x3002;</p>
<p><strong>docker rmi &#x8FD8;&#x6709;&#x4E00;&#x4E9B;&#x7528;&#x6CD5;&#xFF1A;</strong></p>
<ul>
<li>-f &#x5F3A;&#x5236;&#x5220;&#x9664;&#x3002;&#x4F8B;&#x5982;&#xFF1A;docker rmi -f tomcat &#x3002;</li>
<li>&#x5220;&#x9664;&#x591A;&#x4E2A;&#x3002;docker rmi &#x955C;&#x50CF;&#x540D;1:TAG &#x955C;&#x50CF;&#x540D;2:TAG&#x3002;</li>
<li>&#x5220;&#x9664;&#x672C;&#x673A;&#x7684;&#x5168;&#x90E8;&#x955C;&#x50CF;&#x3002;docker rmi $(docker images -qa) &#xFF0C;&#x76F8;&#x5F53;&#x4E8E;&#x7528;docker images -qa&#x67E5;&#x8BE2;&#x51FA;&#x955C;&#x50CF;&#x7684;id&#x4F5C;&#x4E3A;&#x53C2;&#x6570;&#x4F20;&#x9012;&#x7ED9;&#x5220;&#x9664;&#x547D;&#x4EE4;&#x3002;</li>
</ul>
<h1 id="&#x5BB9;&#x5668;&#x547D;&#x4EE4;&#xFF1A;"><a name="&#x5BB9;&#x5668;&#x547D;&#x4EE4;&#xFF1A;" class="anchor-navigation-ex-anchor" href="#&#x5BB9;&#x5668;&#x547D;&#x4EE4;&#xFF1A;"><i class="fa fa-link" aria-hidden="true"></i></a>3. &#x5BB9;&#x5668;&#x547D;&#x4EE4;&#xFF1A;</h1>
<ul>
<li><h2 id="&#x8FD0;&#x884C;&#x5BB9;&#x5668;&#xFF1A;"><a name="&#x8FD0;&#x884C;&#x5BB9;&#x5668;&#xFF1A;" class="anchor-navigation-ex-anchor" href="#&#x8FD0;&#x884C;&#x5BB9;&#x5668;&#xFF1A;"><i class="fa fa-link" aria-hidden="true"></i></a>3.1. &#x8FD0;&#x884C;&#x5BB9;&#x5668;&#xFF1A;</h2>
</li>
</ul>
<pre class="language-"><code>docker run [options] &#x955C;&#x50CF;&#x540D;&#x6216;&#x955C;&#x50CF;ID [COMMAND]  [ARG...]
</code></pre><p>&#x8868;&#x793A;&#x8FD0;&#x884C;&#x955C;&#x50CF;&#x3002;&#x4F8B;&#x5982;&#xFF1A;docker run hello-world&#x8FD9;&#x4E2A;&#x547D;&#x4EE4;&#x5148;&#x4ECE;&#x672C;&#x5730;&#x627E;hello-world&#x955C;&#x50CF;&#xFF0C;&#x5982;&#x679C;&#x6CA1;&#x6709;&#x5C31;&#x53BB;hub.docker.com&#xFF08;&#x6216;&#x8005;&#x963F;&#x91CC;&#x4E91;&#xFF09;&#x627E;hello-world:latest&#x955C;&#x50CF;&#x5E76;&#x4E0B;&#x8F7D;&#x5230;&#x672C;&#x5730;&#x3002;&#x7136;&#x540E;&#x4EE5;hello-world&#x955C;&#x50CF;&#x4E3A;&#x6A21;&#x677F;&#x751F;&#x4EA7;&#x4E00;&#x4E2A;&#x5BB9;&#x5668;&#x5B9E;&#x4F8B;&#x8FD0;&#x884C;&#x3002;&#x5982;&#x679C;&#x5728;&#x8FDC;&#x7A0B;&#x6CA1;&#x6709;&#x627E;&#x5230;&#x955C;&#x50CF;&#x5C31;&#x8FD4;&#x56DE;&#x5931;&#x8D25;&#x3002;</p>
<ul>
<li>&#x53EF;&#x9009;&#x9879; [options]&#xFF1A;&#x8868;&#x793A;docker&#x7684;&#x4E00;&#x4E9B;&#x53EF;&#x9009;&#x547D;&#x4EE4;&#x53C2;&#x6570;&#x3002;</li>
<li>&#x53EF;&#x9009;&#x9879;[COMMAND]  &#xFF1A;&#x8868;&#x793A;&#x7ED9;&#x955C;&#x50CF;&#x4F20;&#x9012;&#x7684;&#x547D;&#x4EE4;&#x3002;</li>
<li>&#x53EF;&#x9009;&#x9879; [ARG...]&#xFF1A;&#x8868;&#x793A;&#x7ED9;&#x955C;&#x50CF;&#x4F20;&#x9012;&#x7684;&#x53C2;&#x6570;&#x3002;</li>
</ul>
<p><strong>docker run &#x7684;&#x5E38;&#x7528;[options] &#xFF1A;</strong></p>
<ul>
<li><p>--name &#x65B0;&#x5BB9;&#x5668;&#x7684;&#x540D;&#x5B57;&#xFF1A;&#x4E3A;&#x5BB9;&#x5668;&#x6307;&#x5B9A;&#x4E00;&#x4E2A;&#x540D;&#x5B57;&#x3002;</p>
</li>
<li><p>-d&#xFF1A;&#x540E;&#x53F0;&#x8FD0;&#x884C;&#x5BB9;&#x5668;&#xFF0C;&#x5E76;&#x8FD4;&#x56DE;&#x5BB9;&#x5668;ID&#x3002;</p>
</li>
<li><p>-i&#xFF1A;&#x4EE5;&#x4EA4;&#x4E92;&#x6A21;&#x5F0F;&#x8FD0;&#x884C;&#x5BB9;&#x5668;&#xFF0C;&#x901A;&#x5E38;&#x4E0E;-t&#x540C;&#x65F6;&#x4F7F;&#x7528;&#x3002;</p>
</li>
<li><p>-t &#xFF1A;&#x4E3A;&#x5BB9;&#x5668;&#x91CD;&#x65B0;&#x5206;&#x914D;&#x4E00;&#x4E2A;&#x4F2A;&#x8F93;&#x5165;&#x7EC8;&#x7AEF;&#xFF0C;&#x901A;&#x5E38;&#x4E0E;-i&#x540C;&#x65F6;&#x4F7F;&#x7528;&#x3002;</p>
</li>
<li><p>-P&#xFF1A;&#x968F;&#x673A;&#x7AEF;&#x53E3;&#x6620;&#x5C04;&#x3002;</p>
</li>
<li><p>-p&#xFF1A;&#x6307;&#x5B9A;&#x7AEF;&#x53E3;&#x6620;&#x5C04;&#x3002;&#x6709;4&#x79CD;&#x683C;&#x5F0F;&#xFF1A;</p>
</li>
</ul>
<blockquote>
<p>ip:hostPort:containerPort</p>
<p>ip::containerPort</p>
<p>hostPort:containerPort</p>
<p>containerPort</p>
</blockquote>
<p><strong>&#x4EA4;&#x4E92;&#x6A21;&#x5F0F;&#x8FD0;&#x884C;&#x5BB9;&#x5668;&#xFF0C;&#x4F8B;&#x5B50;&#x5982;&#x4E0B;&#xFF1A;</strong></p>
<pre class="language-"><code>[root@localhost ~]# docker run -it centos
[root@6faf4716349a /]#
</code></pre><p>&#x4E0A;&#x9762;&#x8FD0;&#x884C;&#x4E00;&#x4E2A;centos&#x5BB9;&#x5668;&#xFF0C;&#x5E76;&#x4E14;&#x5F00;&#x542F;&#x4E00;&#x4E2A;&#x7EC8;&#x7AEF;&#x4E0E;&#x8FD0;&#x884C;&#x7684;centos&#x5BB9;&#x5668;&#x4EA4;&#x4E92;&#x3002;&#x540E;&#x9762;&#x770B;&#x5230;root@6faf4716349a &#x5C31;&#x662F;root&#x7528;&#x6237;&#x767B;&#x5F55;&#x5230;&#x5BB9;&#x5668;6faf4716349a&#x4E0A;&#x4E86;&#x3002;6faf4716349a&#x662F;&#x5BB9;&#x5668;&#x7684;ID&#x3002;</p>
<p><strong>&#x540E;&#x53F0;&#x8FD0;&#x884C;&#x5BB9;&#x5668;&#x3002;&#x9519;&#x8BEF;&#x7684;&#x65B9;&#x5F0F;&#xFF1A;</strong></p>
<pre class="language-"><code>docker run -d centos
</code></pre><p>&#x5982;&#x679C;&#x7528;&#x4E0A;&#x9762;&#x7684;&#x547D;&#x4EE4;&#x8FD0;&#x884C;&#x5BB9;&#x5668;&#xFF0C;&#x4F7F;&#x7528;docker ps -a &#x67E5;&#x770B;&#x4F1A;&#x53D1;&#x73B0;&#x5BB9;&#x5668;&#x5DF2;&#x7ECF;&#x505C;&#x6B62;&#x4E86;&#x3002;&#x8FD9;&#x662F;&#x56E0;&#x4E3A;<strong>docker&#x8981;&#x5BB9;&#x5668;&#x5728;&#x540E;&#x53F0;&#x4E00;&#x76F4;&#x8FD0;&#x884C;&#xFF0C;&#x5FC5;&#x987B;&#x6709;&#x4E00;&#x4E2A;&#x524D;&#x53F0;&#x8FDB;&#x7A0B;</strong>&#x3002;&#x5982;&#x679C;&#x8FD0;&#x884C;&#x5BB9;&#x5668;&#x7684;&#x65F6;&#x5019;&#x7684;&#x547D;&#x4EE4;[COMMAND] [ARG...]&#x4E0D;&#x662F;&#x90A3;&#x4E9B;&#x4E00;&#x76F4;&#x6302;&#x8D77;&#x7684;&#x547D;&#x4EE4;&#xFF08;&#x5982;top&#x3001;tail&#xFF09;&#xFF0C;&#x5BB9;&#x5668;&#x5C31;&#x4F1A;&#x81EA;&#x52A8;&#x9000;&#x51FA;&#x3002;&#x6240;&#x4EE5;&#x6700;&#x597D;&#x7684;&#x65B9;&#x5F0F;&#x662F;&#x5C06;&#x9700;&#x8981;&#x8FD0;&#x884C;&#x7684;&#x7A0B;&#x5E8F;&#x4EE5;&#x524D;&#x53F0;&#x8FDB;&#x7A0B;&#x7684;&#x5F62;&#x5F0F;&#x8FD0;&#x884C;&#x3002;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre class="language-"><code>docker run -d centos ping www.docker.com
</code></pre><p>&#x4E0A;&#x9762;&#x8868;&#x793A;&#x4EE5;&#x5B88;&#x62A4;&#x8FDB;&#x7A0B;&#x65B9;&#x5F0F;&#x8FD0;&#x884C;centos&#xFF0C;&#x4F46;&#x662F;&#x5728;&#x5BB9;&#x5668;&#x4E2D;&#x8FD0;&#x884C;&#x547D;&#x4EE4;ping www.docker.com&#x3002;&#x4F7F;&#x5F97;&#x524D;&#x53F0;&#x4E00;&#x76F4;&#x6302;&#x8D77;&#x3002;</p>
<ul>
<li><h2 id="&#x67E5;&#x770B;&#x5BB9;&#x5668;&#xFF1A;"><a name="&#x67E5;&#x770B;&#x5BB9;&#x5668;&#xFF1A;" class="anchor-navigation-ex-anchor" href="#&#x67E5;&#x770B;&#x5BB9;&#x5668;&#xFF1A;"><i class="fa fa-link" aria-hidden="true"></i></a>3.2. &#x67E5;&#x770B;&#x5BB9;&#x5668;&#xFF1A;</h2>
</li>
</ul>
<pre class="language-"><code>docker ps [options]
</code></pre><p>docker ps&#x67E5;&#x770B;&#x6B63;&#x5728;&#x8FD0;&#x884C;&#x7684;&#x5BB9;&#x5668;&#xFF0C;&#x5DF2;&#x7ECF;&#x505C;&#x6B62;&#x7684;&#x5BB9;&#x5668;&#x4E0D;&#x5217;&#x51FA;&#x3002;</p>
<p><strong>&#x5E38;&#x7528;&#x7684;options&#x8BF4;&#x660E;&#xFF1A;</strong></p>
<ul>
<li>-a&#xFF1A;&#x5217;&#x51FA;&#x6240;&#x6709;&#x8FD0;&#x884C;&#x8FC7;&#x7684;&#x5BB9;&#x5668;&#xFF0C;&#x5305;&#x62EC;&#x5DF2;&#x7ECF;&#x505C;&#x6B62;&#x7684;&#x5BB9;&#x5668;&#x3002;docker ps -a</li>
<li>-q&#xFF1A;&#x53EA;&#x663E;&#x793A;&#x5BB9;&#x5668;&#x7F16;&#x53F7;&#x3002;</li>
<li>-l&#xFF1A;&#x663E;&#x793A;&#x6700;&#x8FD1;&#x521B;&#x5EFA;&#x7684;&#x5BB9;&#x5668;&#x3002;docker ps -l &#x663E;&#x793A;&#x6700;&#x8FD1;&#x521B;&#x5EFA;&#x7684;&#x5BB9;&#x5668;</li>
<li>-n&#xFF1A;&#x663E;&#x793A;&#x6700;&#x8FD1;&#x521B;&#x5EFA;&#x7684;n&#x4E2A;&#x5BB9;&#x5668;&#x3002;docker ps -n 3  &#x663E;&#x793A;&#x6700;&#x8FD1;3&#x6B21;&#x521B;&#x5EFA;&#x7684;&#x5BB9;&#x5668;</li>
<li><p>--no-trunc&#xFF1A;&#x4E0D;&#x622A;&#x65AD;&#x8F93;&#x51FA;&#x3002;</p>
<p>&#x5217;&#x51FA;&#x6240;&#x6709;&#x8FD0;&#x884C;&#x8FC7;&#x7684;&#x5BB9;&#x5668;&#xFF0C;&#x5305;&#x62EC;&#x5DF2;&#x7ECF;&#x505C;&#x6B62;&#x7684;&#x5BB9;&#x5668;&#x3002;&#x4F8B;&#x5B50;&#x5982;&#x4E0B;&#xFF1A;</p>
</li>
</ul>
<pre class="language-"><code>[root@localhost ~]# docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
6faf4716349a        centos              &quot;/bin/bash&quot;         3 minutes ago       Up 3 minutes                            condescending_bose
[root@localhost ~]# 
[root@localhost ~]# docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                  PORTS               NAMES
6faf4716349a        centos              &quot;/bin/bash&quot;         4 minutes ago       Up 4 minutes                                condescending_bose
8432fe5aa5b1        fce289e99eb9        &quot;/hello&quot;            2 days ago          Exited (0) 2 days ago                       kind_yalow
</code></pre><p>STATUS&#x5217;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#xFF0C;docker ps -a &#x5217;&#x51FA;&#x4E86;&#x505C;&#x6B62;&#x8FD0;&#x884C;&#x7684;&#x5BB9;&#x5668;&#x3002;</p>
<p>NAMES&#x5217;&#x662F;&#x5BB9;&#x5668;&#x7684;&#x540D;&#x5B57;&#x3002;&#x5982;&#x679C;&#x8FD0;&#x884C;&#x5BB9;&#x5668;&#x7684;&#x65F6;&#x5019;&#x7528;--name&#x8BBE;&#x7F6E;&#x540D;&#x5B57;&#xFF0C;&#x8FD9;&#x91CC;&#x5C31;&#x663E;&#x793A;&#x8BBE;&#x7F6E;&#x7684;&#x540D;&#x5B57;&#x3002;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre class="language-"><code>[root@localhost ~]# docker run --name=&apos;centos2&apos; centos
[root@localhost ~]# docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                     PORTS               NAMES
f20b38eacfea        centos              &quot;/bin/bash&quot;         9 seconds ago       Exited (0) 3 seconds ago                       centos2
</code></pre><ul>
<li><h2 id="&#x505C;&#x6B62;&#x5BB9;&#x5668;"><a name="&#x505C;&#x6B62;&#x5BB9;&#x5668;" class="anchor-navigation-ex-anchor" href="#&#x505C;&#x6B62;&#x5BB9;&#x5668;"><i class="fa fa-link" aria-hidden="true"></i></a>3.3. &#x505C;&#x6B62;&#x5BB9;&#x5668;</h2>
</li>
</ul>
<pre class="language-"><code>docker stop &#x5BB9;&#x5668;&#x540D;&#x6216;&#x5BB9;&#x5668;ID
</code></pre><p>&#x505C;&#x6B62;&#x5BB9;&#x5668;&#x3002;&#x4F8B;&#x5982;&#xFF1A;docker stop centos</p>
<ul>
<li><h2 id="&#x9000;&#x51FA;&#x5BB9;&#x5668;"><a name="&#x9000;&#x51FA;&#x5BB9;&#x5668;" class="anchor-navigation-ex-anchor" href="#&#x9000;&#x51FA;&#x5BB9;&#x5668;"><i class="fa fa-link" aria-hidden="true"></i></a>3.4. &#x9000;&#x51FA;&#x5BB9;&#x5668;</h2>
</li>
</ul>
<pre class="language-"><code>exit &#x5BB9;&#x5668;&#x505C;&#x6B62;&#x9000;&#x51FA;&#x3002;
ctrl+P+Q &#x5BB9;&#x5668;&#x4E0D;&#x505C;&#x6B62;&#x9000;&#x51FA;&#x3002;
</code></pre><p>&#x5728;&#x548C;&#x5BB9;&#x5668;&#x4EA4;&#x4E92;&#x65F6;&#xFF0C;&#x8F93;&#x5165;exit&#x547D;&#x4EE4;&#x3002;&#x8868;&#x793A;&#x505C;&#x6B62;&#x5BB9;&#x5668;&#x5E76;&#x9000;&#x51FA;&#x3002;&#x8F93;&#x5165;Ctrl+P+Q&#x8868;&#x793A;&#x9000;&#x51FA;&#xFF0C;&#x4F46;&#x662F;&#x4E0D;&#x505C;&#x6B62;&#x5BB9;&#x5668;&#x3002;</p>
<ul>
<li><h2 id="&#x542F;&#x52A8;&#x5DF2;&#x7ECF;&#x505C;&#x6B62;&#x7684;&#x5BB9;&#x5668;&#x3002;"><a name="&#x542F;&#x52A8;&#x5DF2;&#x7ECF;&#x505C;&#x6B62;&#x7684;&#x5BB9;&#x5668;&#x3002;" class="anchor-navigation-ex-anchor" href="#&#x542F;&#x52A8;&#x5DF2;&#x7ECF;&#x505C;&#x6B62;&#x7684;&#x5BB9;&#x5668;&#x3002;"><i class="fa fa-link" aria-hidden="true"></i></a>3.5. &#x542F;&#x52A8;&#x5DF2;&#x7ECF;&#x505C;&#x6B62;&#x7684;&#x5BB9;&#x5668;&#x3002;</h2>
</li>
</ul>
<pre class="language-"><code>docker start &#x5BB9;&#x5668;&#x540D;&#x6216;&#x5BB9;&#x5668;ID
</code></pre><ul>
<li><h2 id="&#x91CD;&#x542F;&#x5BB9;&#x5668;&#x3002;"><a name="&#x91CD;&#x542F;&#x5BB9;&#x5668;&#x3002;" class="anchor-navigation-ex-anchor" href="#&#x91CD;&#x542F;&#x5BB9;&#x5668;&#x3002;"><i class="fa fa-link" aria-hidden="true"></i></a>3.6. &#x91CD;&#x542F;&#x5BB9;&#x5668;&#x3002;</h2>
</li>
</ul>
<pre class="language-"><code>docker restart &#x5BB9;&#x5668;&#x540D;&#x6216;&#x5BB9;&#x5668;ID
</code></pre><ul>
<li><h2 id="kill&#x5BB9;&#x5668;&#xFF0C;&#x5F3A;&#x5236;&#x505C;&#x6B62;&#x5BB9;&#x5668;&#x3002;"><a name="kill&#x5BB9;&#x5668;&#xFF0C;&#x5F3A;&#x5236;&#x505C;&#x6B62;&#x5BB9;&#x5668;&#x3002;" class="anchor-navigation-ex-anchor" href="#kill&#x5BB9;&#x5668;&#xFF0C;&#x5F3A;&#x5236;&#x505C;&#x6B62;&#x5BB9;&#x5668;&#x3002;"><i class="fa fa-link" aria-hidden="true"></i></a>3.7. kill&#x5BB9;&#x5668;&#xFF0C;&#x5F3A;&#x5236;&#x505C;&#x6B62;&#x5BB9;&#x5668;&#x3002;</h2>
</li>
</ul>
<pre class="language-"><code>docker kill &#x5BB9;&#x5668;&#x540D;&#x6216;&#x5BB9;&#x5668;ID
</code></pre><ul>
<li><h2 id="&#x5220;&#x9664;&#x5DF2;&#x505C;&#x6B62;&#x7684;&#x5BB9;&#x5668;&#x3002;"><a name="&#x5220;&#x9664;&#x5DF2;&#x505C;&#x6B62;&#x7684;&#x5BB9;&#x5668;&#x3002;" class="anchor-navigation-ex-anchor" href="#&#x5220;&#x9664;&#x5DF2;&#x505C;&#x6B62;&#x7684;&#x5BB9;&#x5668;&#x3002;"><i class="fa fa-link" aria-hidden="true"></i></a>3.8. &#x5220;&#x9664;&#x5DF2;&#x505C;&#x6B62;&#x7684;&#x5BB9;&#x5668;&#x3002;</h2>
</li>
</ul>
<pre class="language-"><code>docker rm &#x5BB9;&#x5668;ID
</code></pre><p>&#x5982;&#x679C;&#x60F3;&#x6279;&#x91CF;&#x5220;&#x9664;&#x3002;&#x7528;&#x4E0B;&#x9762;&#x7684;2&#x4E2A;&#x547D;&#x4EE4;&#xFF1A;</p>
<pre class="language-"><code>docker rm -f $(docker ps -a -q)
</code></pre><pre class="language-"><code>docker ps -a -q |xargs docker rm
</code></pre><p>&#x8FD9;&#x91CC;xargs&#x662F;linux&#x7684;&#x547D;&#x4EE4;&#xFF0C;&#x628A;&#x4E0A;&#x4E00;&#x4E2A;&#x547D;&#x4EE4;&#x7684;&#x7ED3;&#x679C;&#x4F20;&#x9012;&#x7ED9;&#x4E0B;&#x4E00;&#x4E2A;&#x547D;&#x4EE4;&#x3002;&#x5C31;&#x662F;&#x628A;docker ps -a -q &#x7684;&#x8F93;&#x51FA;&#x5185;&#x5BB9;&#x4F20;&#x9012;&#x7ED9;docker rm&#x547D;&#x4EE4;&#x3002;</p>
<ul>
<li><h2 id="&#x67E5;&#x770B;&#x5BB9;&#x5668;&#x65E5;&#x5FD7;&#x3002;"><a name="&#x67E5;&#x770B;&#x5BB9;&#x5668;&#x65E5;&#x5FD7;&#x3002;" class="anchor-navigation-ex-anchor" href="#&#x67E5;&#x770B;&#x5BB9;&#x5668;&#x65E5;&#x5FD7;&#x3002;"><i class="fa fa-link" aria-hidden="true"></i></a>3.9. &#x67E5;&#x770B;&#x5BB9;&#x5668;&#x65E5;&#x5FD7;&#x3002;</h2>
</li>
</ul>
<pre class="language-"><code>docker logs -f -t --tail &#x5BB9;&#x5668;ID
</code></pre><ul>
<li>-t &#xFF1A;&#x662F;&#x5728;&#x65E5;&#x5FD7;&#x4E2D;&#x52A0;&#x5165;&#x65F6;&#x95F4;&#x6233;&#x3002;</li>
<li>-f &#xFF1A;&#x76F8;&#x5F53;&#x4E8E;linux&#x7684;tail -f&#xFF0C;&#x76D1;&#x63A7;&#x65E5;&#x5FD7;&#x3002;</li>
<li>--tail&#xFF1A;&#x67E5;&#x770B;&#x65E5;&#x5FD7;&#x7684;&#x6700;&#x540E;&#x51E0;&#x884C;&#x3002;&#x4F8B;&#x5982;&#x67E5;&#x770B;&#x65E5;&#x5FD7;&#x7684;&#x6700;&#x540E;3&#x884C;&#xFF1A;docker logs --tail 3 &#x5BB9;&#x5668;ID </li>
</ul>
<p>&#x4F8B;&#x5B50;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre class="language-"><code>[root@localhost ~]# docker logs -ft --tail 3  d175764e99f2
2019-03-11T08:08:27.955057288Z 64 bytes from server-13-35-99-22.lax3.r.cloudfront.net (13.35.99.22): icmp_seq=390 ttl=233 time=215 ms
2019-03-11T08:08:28.944550516Z 64 bytes from server-13-35-99-22.lax3.r.cloudfront.net (13.35.99.22): icmp_seq=391 ttl=233 time=202 ms
2019-03-11T08:08:29.964682899Z 64 bytes from server-13-35-99-22.lax3.r.cloudfront.net (13.35.99.22): icmp_seq=392 ttl=233 time=220 ms
2019-03-11T08:08:30.961770389Z 64 bytes from server-13-35-99-22.lax3.r.cloudfront.net (13.35.99.22): icmp_seq=393 ttl=233 time=216 ms
</code></pre><ul>
<li><h2 id="&#x67E5;&#x770B;&#x5BB9;&#x5668;&#x5185;&#x90E8;&#x7EC6;&#x8282;&#x3002;"><a name="&#x67E5;&#x770B;&#x5BB9;&#x5668;&#x5185;&#x90E8;&#x7EC6;&#x8282;&#x3002;" class="anchor-navigation-ex-anchor" href="#&#x67E5;&#x770B;&#x5BB9;&#x5668;&#x5185;&#x90E8;&#x7EC6;&#x8282;&#x3002;"><i class="fa fa-link" aria-hidden="true"></i></a>3.10. &#x67E5;&#x770B;&#x5BB9;&#x5668;&#x5185;&#x90E8;&#x7EC6;&#x8282;&#x3002;</h2>
</li>
</ul>
<pre class="language-"><code>docker inspect &#x5BB9;&#x5668;ID
</code></pre><p>&#x5BB9;&#x5668;&#x662F;&#x4E00;&#x5C42;&#x5957;&#x4E00;&#x5C42;&#x7684;&#xFF0C;&#x6BD4;&#x5982;tomcat&#x8981;&#x4F9D;&#x8D56;&#x4E8E;java&#x3002;&#x4F7F;&#x7528;&#x8FD9;&#x4E2A;&#x547D;&#x4EE4;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x5BB9;&#x5668;&#x5185;&#x90E8;&#x7684;&#x7EC6;&#x8282;&#x3002;&#x548C;&#x542F;&#x52A8;&#x5BB9;&#x5668;&#x65F6;&#x6267;&#x884C;&#x7684;&#x547D;&#x4EE4;&#x3002;</p>
<ul>
<li><h2 id="&#x9000;&#x51FA;&#x5BB9;&#x5668;&#x540E;&#xFF0C;&#x91CD;&#x65B0;&#x4E0E;&#x5BB9;&#x5668;&#x4EA4;&#x4E92;&#x3002;"><a name="&#x9000;&#x51FA;&#x5BB9;&#x5668;&#x540E;&#xFF0C;&#x91CD;&#x65B0;&#x4E0E;&#x5BB9;&#x5668;&#x4EA4;&#x4E92;&#x3002;" class="anchor-navigation-ex-anchor" href="#&#x9000;&#x51FA;&#x5BB9;&#x5668;&#x540E;&#xFF0C;&#x91CD;&#x65B0;&#x4E0E;&#x5BB9;&#x5668;&#x4EA4;&#x4E92;&#x3002;"><i class="fa fa-link" aria-hidden="true"></i></a>3.11. &#x9000;&#x51FA;&#x5BB9;&#x5668;&#x540E;&#xFF0C;&#x91CD;&#x65B0;&#x4E0E;&#x5BB9;&#x5668;&#x4EA4;&#x4E92;&#x3002;</h2>
</li>
</ul>
<p>&#x9000;&#x51FA;&#x5BB9;&#x5668;&#x4E4B;&#x540E;&#xFF0C;&#x60F3;&#x518D;&#x4E0E;&#x5BB9;&#x5668;&#x4EA4;&#x4E92;&#xFF0C;&#x53EF;&#x4F7F;&#x7528;&#x4E0B;&#x9762;&#x7684;2&#x4E2D;&#x65B9;&#x5F0F;&#xFF1A;</p>
<pre class="language-"><code>docker exec -it &#x5BB9;&#x5668;ID &#x8981;&#x5728;&#x5BB9;&#x5668;&#x6267;&#x884C;&#x7684;shell&#x547D;&#x4EE4;
</code></pre><pre class="language-"><code>docker attach &#x5BB9;&#x5668;ID
</code></pre><p><strong>&#x8FD9;2&#x79CD;&#x65B9;&#x5F0F;&#x7684;&#x533A;&#x522B;&#x662F;&#xFF1A;</strong></p>
<ul>
<li>exec &#x662F;&#x5728;&#x5BB9;&#x5668;&#x4E2D;&#x6253;&#x5F00;&#x65B0;&#x7684;&#x7EC8;&#x7AEF;&#xFF0C;&#x5E76;&#x4E14;&#x53EF;&#x4EE5;&#x542F;&#x52A8;&#x65B0;&#x7684;&#x8FDB;&#x7A0B;&#x3002;<strong>&#xFF08;&#x63A8;&#x8350;&#x8FD9;&#x79CD;&#x65B9;&#x5F0F;&#xFF09;</strong></li>
<li>attach &#x662F;&#x76F4;&#x63A5;&#x8FDB;&#x5165;&#x5BB9;&#x5668;&#x7684;&#x542F;&#x52A8;&#x7EC8;&#x7AEF;&#x3002;&#x4E0D;&#x4F1A;&#x542F;&#x52A8;&#x65B0;&#x7684;&#x8FDB;&#x7A0B;&#x3002;&#x5982;&#x679C;&#x662F;&#x7528;-d&#x542F;&#x52A8;&#x7684;&#x5BB9;&#x5668;&#xFF0C;&#x4F7F;&#x7528;attach &#x8FDB;&#x5165;&#x540E;&#xFF0C;&#x7528;Ctrl+P+Q&#x4E5F;&#x6CA1;&#x529E;&#x6CD5;&#x9000;&#x51FA;&#x3002;&#x53EA;&#x80FD;Ctrl+C&#x5173;&#x95ED;&#x7EC8;&#x7AEF;&#xFF0C;&#x4F46;&#x662F;&#x56E0;&#x4E3A;&#x7EC8;&#x7AEF;&#x5173;&#x95ED;&#x5BB9;&#x5668;&#x505C;&#x6B62;&#x4E86;&#x3002;&#x6240;&#x4EE5;<strong>&#x4E0D;&#x63A8;&#x8350;&#x8FD9;&#x79CD;&#x65B9;&#x5F0F;</strong>&#x3002;</li>
</ul>
<p>&#x4E5F;&#x5C31;&#x662F;attach&#x76F4;&#x63A5;&#x8FDB;&#x5165;&#x5BB9;&#x5668;&#x7684;&#x542F;&#x52A8;&#x7EC8;&#x7AEF;&#xFF0C;&#x5728;&#x5BB9;&#x5668;&#x5185;&#x90E8;&#x518D;&#x6267;&#x884C;&#x60F3;&#x8981;&#x64CD;&#x4F5C;&#x7684;shell&#x547D;&#x4EE4;&#x3002;&#x800C;exec &#x6253;&#x5F00;&#x65B0;&#x7684;&#x7EC8;&#x7AEF;&#xFF0C;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x4F20;&#x9012;&#x60F3;&#x8981;&#x64CD;&#x4F5C;&#x7684;shell&#x547D;&#x4EE4;&#xFF0C;&#x5E76;&#x4E14;&#x9A6C;&#x4E0A;&#x8FD4;&#x56DE;&#x7ED3;&#x679C;&#x3002;</p>
<p>&#x4F8B;&#x5982;&#x8981;&#x5728;&#x5BB9;&#x5668;&#x5185;&#x6267;&#x884C;ls -l&#x547D;&#x4EE4;&#xFF0C;exec &#x4F8B;&#x5B50;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre class="language-"><code>[root@localhost ~]# docker exec -it d175764e99f2 ls -l
total 12
-rw-r--r--.   1 root root 12076 Dec  5 01:37 anaconda-post.log
lrwxrwxrwx.   1 root root     7 Dec  5 01:36 bin -&gt; usr/bin
drwxr-xr-x.   5 root root   340 Mar 11 08:01 dev
</code></pre><p>attach&#x4F8B;&#x5B50;&#x5982;&#x4E0B;&#xFF1A;&#x56E0;&#x4E3A;&#x6211;&#x7684;&#x542F;&#x52A8;&#x7EC8;&#x7AEF;&#x4E00;&#x76F4;&quot;ping www.docker.com&quot;&#x5728;&#x63A7;&#x5236;&#x53F0;&#x6253;&#x5370;&#x4FE1;&#x606F;&#xFF0C;&#x6240;&#x4EE5;&#x8FDB;&#x5165;&#x4E4B;&#x540E;&#x8FD8;&#x662F;&#x4E00;&#x76F4;&#x6253;&#x5370;ping&#x4FE1;&#x606F;&#x3002;&#x8FD9;&#x91CC;&#x56E0;&#x4E3A;&#x6211;&#x7528;-d&#x542F;&#x52A8;&#x7684;&#x5BB9;&#x5668;&#xFF0C;&#x7528;Ctrl+P+Q&#x4E5F;&#x6CA1;&#x529E;&#x6CD5;&#x9000;&#x51FA;&#x3002;&#x53EA;&#x80FD;Ctrl+C&#x5173;&#x95ED;&#x7EC8;&#x7AEF;&#xFF0C;&#x4F46;&#x662F;&#x56E0;&#x4E3A;&#x7EC8;&#x7AEF;&#x5173;&#x95ED;&#xFF0C;&#x5BB9;&#x5668;&#x505C;&#x6B62;&#x4E86;&#x3002;</p>
<pre class="language-"><code>[root@localhost ~]# docker attach d175764e99f2
64 bytes from server-13-35-99-22.lax3.r.cloudfront.net (13.35.99.22): icmp_seq=2294 ttl=233 time=222 ms
64 bytes from server-13-35-99-22.lax3.r.cloudfront.net (13.35.99.22): icmp_seq=2295 ttl=233 time=208 ms
64 bytes from server-13-35-99-22.lax3.r.cloudfront.net (13.35.99.22): icmp_seq=2296 ttl=233 time=249 ms
</code></pre><ul>
<li><h2 id="&#x67E5;&#x770B;&#x5BB9;&#x5668;&#x7684;&#x8FDB;&#x7A0B;&#x3002;"><a name="&#x67E5;&#x770B;&#x5BB9;&#x5668;&#x7684;&#x8FDB;&#x7A0B;&#x3002;" class="anchor-navigation-ex-anchor" href="#&#x67E5;&#x770B;&#x5BB9;&#x5668;&#x7684;&#x8FDB;&#x7A0B;&#x3002;"><i class="fa fa-link" aria-hidden="true"></i></a>3.12. &#x67E5;&#x770B;&#x5BB9;&#x5668;&#x7684;&#x8FDB;&#x7A0B;&#x3002;</h2>
</li>
</ul>
<pre class="language-"><code>docker top &#x5BB9;&#x5668;ID
</code></pre><p>&#x4F8B;&#x5B50;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre class="language-"><code>[root@localhost ~]# docker top 42b67ae89cf4
UID                 PID                 PPID                C                   STIME               TTY                 TIME                CMD
root                9619                9603                0                   17:41               pts/0               00:00:00            /bin/bash
</code></pre><ul>
<li><h2 id="&#x4ECE;&#x5BB9;&#x5668;&#x5185;&#x62F7;&#x8D1D;&#x6587;&#x4EF6;&#x5230;&#x4E3B;&#x673A;&#x4E0A;"><a name="&#x4ECE;&#x5BB9;&#x5668;&#x5185;&#x62F7;&#x8D1D;&#x6587;&#x4EF6;&#x5230;&#x4E3B;&#x673A;&#x4E0A;" class="anchor-navigation-ex-anchor" href="#&#x4ECE;&#x5BB9;&#x5668;&#x5185;&#x62F7;&#x8D1D;&#x6587;&#x4EF6;&#x5230;&#x4E3B;&#x673A;&#x4E0A;"><i class="fa fa-link" aria-hidden="true"></i></a>3.13. &#x4ECE;&#x5BB9;&#x5668;&#x5185;&#x62F7;&#x8D1D;&#x6587;&#x4EF6;&#x5230;&#x4E3B;&#x673A;&#x4E0A;</h2>
</li>
</ul>
<pre class="language-"><code>docker cp &#x5BB9;&#x5668;ID&#xFF1A;&#x5BB9;&#x5668;&#x5185;&#x8DEF;&#x5F84; &#x5BBF;&#x4E3B;&#x673A;&#x8DEF;&#x5F84;
</code></pre><p>&#x4F8B;&#x5B50;&#x5982;&#x4E0B;&#xFF1A;&#x628A;42b67ae89cf4&#x5BB9;&#x5668;&#x7684;/tmp/yum.log&#x6587;&#x4EF6;&#x590D;&#x5236;&#x5230;&#x5BBF;&#x4E3B;&#x673A;&#x7684;/root&#x4E0B;&#x9762;&#x3002;</p>
<pre class="language-"><code>[root@localhost ~]# docker cp 42b67ae89cf4:/tmp/yum.log /root
[root@localhost ~]# ll
&#x603B;&#x7528;&#x91CF; 12
-rw-------. 1 root root 1730 3&#x6708;  27 2018 anaconda-ks.cfg
-rw-r--r--. 1 root root 1778 3&#x6708;  27 2018 initial-setup-ks.cfg
-rw-r--r--. 1 root root  267 5&#x6708;  23 2018 webui
-rw-------. 1 root root    0 12&#x6708;  5 09:36 yum.log
</code></pre>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="4、配置私有镜像仓库.html" class="navigation navigation-prev " aria-label="Previous page: 4、配置私有镜像仓库">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="6、镜像的原理.html" class="navigation navigation-next " aria-label="Next page: 6、镜像的原理">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"5、docker的命令","level":"1.3.5","depth":2,"next":{"title":"6、镜像的原理","level":"1.3.6","depth":2,"path":"docker/6、镜像的原理.md","ref":"docker/6、镜像的原理.md","articles":[]},"previous":{"title":"4、配置私有镜像仓库","level":"1.3.4","depth":2,"path":"docker/4、配置私有镜像仓库.md","ref":"docker/4、配置私有镜像仓库.md","articles":[]},"dir":"ltr"},"config":{"plugins":["donate","copy-code-button","expandable-chapters","prism","prism-themes","-highlight","anchor-navigation-ex","-sharing","sharing-plus"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"prism":{"css":["prism-themes/themes/prism-duotone-dark.css"]},"search":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"donate":{"alipay":"/gitbook的使用/Donate/alipay.jpg","alipayText":"支付宝打赏","button":"捐赠","title":"如果您觉得有用，请我喝杯水。","wechat":"/gitbook的使用/Donate/wechat.png","wechatText":"微信打赏"},"fontsettings":{"theme":"white","family":"sans","size":2},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"mode":"float","multipleH1":true,"pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"printLog":false,"showGoTop":true,"showLevel":true},"prism-themes":{},"copy-code-button":{},"sharing":{"qq":true,"all":["weibo","douban","google","line","hatenaBookmark","instapaper","viber","vk","whatsapp","stumbleupon","messenger"],"douban":false,"facebook":true,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":true,"linkedin":true},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"theme":"default","author":"wk","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"王坤个人博客","language":"zh-hans","links":{"sidebar":{"我的博客地址":"https://my.oschina.net/kunBlog"}},"gitbook":"3.2.3","description":"王坤个人博客"},"file":{"path":"docker/5、docker的命令.md","mtime":"2020-02-01T04:13:06.454Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-04-01T11:40:27.319Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-copy-code-button/toggle.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

